package com.example.nonacademic_education.service;

import com.example.nonacademic_education.data.request.FileItemGrantVo;
import com.example.nonacademic_education.entity.FileItemInfo;
import com.example.nonacademic_education.util.R;
import org.springframework.web.multipart.MultipartFile;

public interface FileItemInfoService {
    R getList(Integer page,Integer size,String name);

    R addOne(FileItemInfo fileItemInfo);

    R updateOne(FileItemInfo fileItemInfo);

    R deleteOne(Long id);

    R getGrantList(Long itemId);

    R updateGrant(FileItemGrantVo fileItemGrantVo);

    R getItemList(Long departmentId);

    R uploadTemplate(MultipartFile file,Long fileItemId);

    R deleteTemplate(Long fileItemId);
}
